import request from '@/utils/request'

// 查询店铺日志列表
export function listShoplog(query) {
  return request({
    url: '/mahjong/shoplog/list',
    method: 'get',
    params: query
  })
}

// 查询店铺日志详细
export function getShoplog(id) {
  return request({
    url: '/mahjong/shoplog/' + id,
    method: 'get'
  })
}

// 新增店铺日志
export function addShoplog(data) {
  return request({
    url: '/mahjong/shoplog',
    method: 'post',
    data: data
  })
}

// 修改店铺日志
export function updateShoplog(data) {
  return request({
    url: '/mahjong/shoplog',
    method: 'put',
    data: data
  })
}

// 删除店铺日志
export function delShoplog(id) {
  return request({
    url: '/mahjong/shoplog/' + id,
    method: 'delete'
  })
}

// 导出店铺日志
export function exportShoplog(query) {
  return request({
    url: '/mahjong/shoplog/export',
    method: 'get',
    params: query
  })
}